package cn.gailvlun.gll.presentation.hotel.drawer

import android.content.Context
import cn.gailvlun.gll.R
import cn.gailvlun.gll.net.hotel.InsomniaHotel
import com.github.markzhai.recyclerview.SingleTypeAdapter


class HotelTextShareAdapter : SingleTypeAdapter<InsomniaHotel> {
    constructor(context: Context?) : super(context, R.layout.item_hotel_text_share_wrapper)

    fun getLastId(): Int {
        return mCollection.last().id
    }

    fun deleteItem(item: InsomniaHotel) {
        val pos = mCollection.indexOf(item)
        remove(pos)
    }
}